﻿namespace AfrikDotnetWebSite.Migrations
{
    using AfrikDotnetWebSite.Models;
    using System.Data.Entity.Migrations;

    internal sealed class Configuration : DbMigrationsConfiguration<AfrikDotnetContext>
    {
        public Configuration()
        {
            AutomaticMigrationsEnabled = true;
            AutomaticMigrationDataLossAllowed = true;
        }

        protected override void Seed(AfrikDotnetContext context)
        {
            context.SiteSettings.AddOrUpdate(
                 new SiteSetting
                 {
                     Id = 1,
                     Key = "Facebook",
                     Value = "https://www.facebook.com/afrikdotnet"
                 },
                 new SiteSetting
                 {
                     Id = 2,
                     Key = "Twitter",
                     Value = "https://twitter.com/afrikdotnet"
                 },
                 new SiteSetting
                 {
                     Id = 3,
                     Key = "Email",
                     Value = "talk@afrikdotnet.com"
                 },
                 new SiteSetting
                 {
                     Id = 4,
                     Key = "Logo",
                     Value = "Hélène Papasian Ndinga, Davy Roy Ndinga."
                 },
                 new SiteSetting
                 {
                     Id = 5,
                     Key = "WebSite",
                     Value = "Vassindou Touré, Malainy Kagni, Babacar Lô, Mamby Camara."
                 },
                 new SiteSetting
                 {
                     Id = 6,
                     Key = "Events",
                     Value = "https://www.facebook.com/afrikdotnet/events"
                 },
                 new SiteSetting
                 {
                     Id = 7,
                     Key = "fbgroup",
                     Value = "https://www.facebook.com/groups/342080195837498/"
                 },
                 new SiteSetting
                 {
                     Id = 8,
                     Key = "ligroup",
                     Value = "http://www.linkedin.com/groups/AfrikNET-3842450/about"
                 }
            );

            context.UserGroups.AddOrUpdate(
                 new UserGroup
                 {
                     Id = 1,
                     Name = "Afrik.NET Cameroun",
                     Contact = "Djiofack Innocent - djiofack007@yahoo.fr"
                 },
                 new UserGroup
                 {
                     Id = 2,
                     Name = "Afrik.NET Côte d'Ivoire",
                     Contact = "Cyriac Gbogou - cyriacgbogou@live.fr"
                 },
                 new UserGroup
                 {
                     Id = 3,
                     Name = "Afrik.NET Guinée-Conakry",
                     Contact = "Aboubacar Diallo - aboubacar.diallo@studentpartner.com"
                 },
                 new UserGroup
                 {
                     Id = 4,
                     Name = "Afrik.NET RDC",
                     Contact = "Yannick Komotir - komkas@hotmail.com"
                 },
                 new UserGroup
                 {
                     Id = 5,
                     Name = "Afrik.NET Sénégal",
                     Contact = "Idrissa Samba Sakiné - isakine@solid.sn"
                 }
            );
        }
    }
}
